<? 
    session_start();
	include ("../core/conn.php");
	global $db;	
	$db = get_conn();
	
	$u = $_GET['u'];
	$sql ="select count(email) as cantidad from users where email='".trim($u)."'";
	//echo $sql;
	$result = mysql_query($sql);	
	if($result){
		$row = mysql_fetch_array($result);
		$cantidad = $row['cantidad'];
		if($cantidad > 0){
			echo "<input type='hidden' name='valid_email' value='F' id='valid_email'  />";
		}else{
			echo "<input type='hidden' name='valid_email' value='T' id='valid_email' />";
		}
	}else{
		error_handling(__FUNCTION__.$sql,mysql_error());
	}	
?>